package com.zxy.supplier_system.server.entity

import jakarta.persistence.Entity
import jakarta.persistence.FetchType
import jakarta.persistence.Id
import jakarta.persistence.OneToOne
import jakarta.persistence.PrimaryKeyJoinColumn
import org.hibernate.annotations.ColumnDefault

@Entity
class EmployeeSetting {

    @Id
    var id: Int? = null

    /**
     * 是否订阅所有卖场的订单提交的微信通知
     */
    @ColumnDefault("0")
    var subscribeAllMarketOrderSubmittedWechatNotification: Boolean = false

    @OneToOne(fetch = FetchType.LAZY, optional = false)
    @PrimaryKeyJoinColumn
    lateinit var employee: Employee

}